package com.jack.configuration;

import org.springframework.stereotype.Component;

import com.jack.entity.User;
import com.jack.service.UserFeignClient;

@Component
public class FeignClientConfiguration implements UserFeignClient {

	@Override
	public User findById(Long id) {
		User user = new User();
		user.setId(-1L);
		user.setName("default name");
		return user;
	}

}
